import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
    count:1,
    token:null,//登陸token
    isSelect:0
}
const mutations={
    add(state){
        state.count+=1;
    },
    reduce(state){
        state.count-=1;
    },
    addtoken(state,e){
        state.token=e;
    },
    footIsSelect(state,e){//判斷底部切换状态
        state.isSelect=e;
    }
}

export default new Vuex.Store({
    state,mutations
    
});